/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.team1662.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.networktables.NetworkTable;

/**
 *
 * @author programmer
 */
public class Networktables extends Subsystem{
    static NetworkTable driveTable;
    static NetworkTable singleControl;
    
    public Networktables(){
        driveTable = NetworkTable.getTable("Drivetrain");
        singleControl = NetworkTable.getTable("SingleController");
    }
    
    /**
     *
     */
     public static boolean update(){
        boolean singleCont = singleControl.getBoolean("SingleControl");
        return singleCont;
    }

     public static void push(double speed1, double speed2){
        driveTable.putNumber("Motor Speed", speed1);

     }
     
    protected void initDefaultCommand() {
        driveTable.putNumber("Motor Speed", 0);
    }
    
    
    
}
